import request from '@/utils/request'

export function listPayCode(payCodeSn) {
  return request({
    url: '/payCode/list',
    method: 'get',
    params: {
      payCodeSn: payCodeSn
    }
  })
}

export function listTotalpayCode(query) {
  return request({
    url: '/payCode/totalList',
    method: 'get',
    params: query
  })
}

export function payCodeState(payCodeSn) {
  return request({
    url: '/payCode/changePayCodeState',
    method: 'get',
    params: {
      payCodeSn: payCodeSn
    }
  })
}
